package com.zuoyy.common.utils;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

public class FileUtil {

    public static void delFile(String filePath) throws IOException {
        Path path = Paths.get(filePath);
        if (!Files.notExists(path)) {
            Files.delete(path);
        }
    }
}
